package ywpt.model;

import java.util.Date;

import ywpt.components.acegi.domain.User;

public class SysMsgInfo implements java.io.Serializable{
	
	
	/**
	 * 通知公告
	 */
	private static final long serialVersionUID = 954937392534854682L;
	   private Long id;//Id          
	   private String msgTitle;//Msg_Title    消息标题
	   private String msgContent;//Msg_Content    消息内容
	   private User sendUser;//Send_User    发送人 
	   private String receiveOrg;//Receive_Org   接受组织ID  
	   private String receiveUser;//Receive_User   接受人  
	   
	   /*
	    * 这是一个隐藏字段，如果该字段中存在该用户的Id，则该信息不再提醒该用户。
	    */	   
	   private String unWarnUser; 

	   //1. 人事申请
	   //2.	小额收款
	   //3. 维修信息
	   //4. 工作计划
	   //5. 工作汇报
	   //6. 通知公告
	   //7. 费用信息
	   //8. 知识管理
	   //9. 软件服务单
	   //10.硬件服务单
	   //11.电话记录
	   //12.人事头像更新
	   //13.工龄提醒
	   //14.转正提醒
	   //15.部门计划下发提醒
	   //16.技术部门工作汇报	   
	   private int businessType;
	   

	   private Long businessId;
	   
	   private CommonTable msgType;// Msg_Type     消息类型
								   //1：业务消息（需要办理业务）
								   //２.　用户消息（不需办理业务）
	   
	   private CommonTable invalidType;//Invalid_Type    失效方式 
									  // １：　被通知人主动失效（点击“我知道了”即可）
									  // ２：　系统管理失效（由失效时间自动失效）
	   
	   private Date invalidDateTime;//Invalid_DateTime   系统自动失效时间
	   
	   private String url;//    相关工单连接
	   
	   private int version;//Version     版本号
	   private Boolean invalidFlag;//Invalid_Flag   是否失效
	   private Boolean deleteFlag;//Delete_Flag    是否删除
	   private Boolean checkFlag;//Check_Flag    是否审核
	   private User checker;//Checker    审核人
	   private Date createDate;//Create_Date     建立时间
	   private User creater;//Creater       建立人
	   private Date modifyDate;//Modify_Date   最后修改时间
	   private User modifyer;//Modifyer    最后修改人
	   
	public SysMsgInfo(){
		this.invalidFlag = false;
		this.deleteFlag = false;
		this.checkFlag = false;
		this.businessType = 0;
		this.receiveUser = "0,";
		this.unWarnUser="0,";
		//this.receiveOrg="";//Receive_Org   接受组织ID  
		//this.receiveUser="";//Receive_User   接受人  
	}
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getMsgTitle() {
		return msgTitle;
	}
	public void setMsgTitle(String msgTitle) {
		this.msgTitle = msgTitle;
	}
	public String getMsgContent() {
		return msgContent;
	}
	public void setMsgContent(String msgContent) {
		this.msgContent = msgContent;
	}
	public User getSendUser() {
		return sendUser;
	}
	public void setSendUser(User sendUser) {
		this.sendUser = sendUser;
	}
	public CommonTable getMsgType() {
		return msgType;
	}
	public void setMsgType(CommonTable msgType) {
		this.msgType = msgType;
	}
	public CommonTable getInvalidType() {
		return invalidType;
	}
	public void setInvalidType(CommonTable invalidType) {
		this.invalidType = invalidType;
	}
	public Date getInvalidDateTime() {
		return invalidDateTime;
	}
	public void setInvalidDateTime(Date invalidDateTime) {
		this.invalidDateTime = invalidDateTime;
	}
 
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public int getVersion() {
		return version;
	}
	public void setVersion(int version) {
		this.version = version;
	}
	public Boolean getInvalidFlag() {
		return invalidFlag;
	}
	public void setInvalidFlag(Boolean invalidFlag) {
		this.invalidFlag = invalidFlag;
	}
	public Boolean getDeleteFlag() {
		return deleteFlag;
	}
	public void setDeleteFlag(Boolean deleteFlag) {
		this.deleteFlag = deleteFlag;
	}
	public Boolean getCheckFlag() {
		return checkFlag;
	}
	public void setCheckFlag(Boolean checkFlag) {
		this.checkFlag = checkFlag;
	}
	public User getChecker() {
		return checker;
	}
	public void setChecker(User checker) {
		this.checker = checker;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public User getCreater() {
		return creater;
	}
	public void setCreater(User creater) {
		this.creater = creater;
	}
	public Date getModifyDate() {
		return modifyDate;
	}
	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}
	public User getModifyer() {
		return modifyer;
	}
	public void setModifyer(User modifyer) {
		this.modifyer = modifyer;
	}

	public String getReceiveOrg() {
		return receiveOrg;
	}

	public void setReceiveOrg(String receiveOrg) {
		this.receiveOrg = receiveOrg;
	}

	public String getReceiveUser() {
		return receiveUser;
	}

	public void setReceiveUser(String receiveUser) {
		this.receiveUser = receiveUser;
	}

	public int getBusinessType() {
		return businessType;
	}

	public void setBusinessType(int businessType) {
		this.businessType = businessType;
	}

	public Long getBusinessId() {
		return businessId;
	}

	public void setBusinessId(Long businessId) {
		this.businessId = businessId;
	}

	public String getUnWarnUser() {
		return unWarnUser;
	}

	public void setUnWarnUser(String unWarnUser) {
		this.unWarnUser = unWarnUser;
	}
	   
	   
}
